package com.example.pro1.controller.zhao;

import com.example.pro1.config.zhao.WxPayConfig;
import com.example.pro1.valu.R;
import com.example.pro1.valu.Standard;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "测试控制器")
@RestController
@RequestMapping("/api/test")
public class TestController {
    @Resource
    private WxPayConfig wxPayConfig;

    @GetMapping
    public Standard gerWxPayConfig ()
    {
        return  R.ok().data("mcid",wxPayConfig.getMchId());
    }
}
